package com.caiwen.blog.service.impl.sellerLogin;

import com.caiwen.blog.dao.seller.TbSellerMapper;
import com.caiwen.blog.pojo.TbSeller;
import com.caiwen.blog.service.sellerLogin.SellerLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.caiwen.util.BCryptUtils;

@Service
@Transactional
public class SellerLoginServiceImpl implements SellerLoginService {

    @Autowired
    private TbSellerMapper sellerMapper;


    @Override
    public TbSeller findSellerByTelephone(String telephone) {

        TbSeller seller = new TbSeller();
        seller.setTelephone("18611111111");
        seller.setPassword(BCryptUtils.getBcryptPassword("123"));
        seller.setSellerName("测试商家");
        return seller;
//        return sellerMapper.selectByPrimaryKey(telephone);
    }
}
